package lab02.test24;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Scanner;

/**
 * Created by 14394 on 2017/11/13.
 */
public class Test {
    public static void main(String[] args) {
        Scanner s=new Scanner(System.in);
        String d1=s.next();
        String d2=s.next();
        Date date1=null;
        Date date2=null;

        SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd");
        try {
            date1=simpleDateFormat.parse(d1);
            date2=simpleDateFormat.parse(d2);
        } catch (ParseException e) {
            e.printStackTrace();
        }

        Calendar cl1= Calendar.getInstance();
        cl1.setTime(date1);
        Calendar cl2= Calendar.getInstance();
        cl2.setTime(date2);
        long days=cl1.getTimeInMillis()-cl2.getTimeInMillis();
        System.out.println("相差的点数："+days/(24*3600*1000));
    }
}
